package cn.asterly.cicada.mapper;

import cn.asterly.cicada.model.User;
import cn.asterly.cicada.model.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(String id);

    //    int deleteByPrimaryKey(String[] ids);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User loginByTel(String tel);

    User loginByEmail(String email);

    User loginByName(String name,String password);


    String  selByEmail(String email);

    int selCountUser();
}